#!usr/bin/env node

const argvs = process.argv,
      log = console.log,
      error = console.error,
      exit = process.exit;
let arr = [];
if(argvs.length < 3){
  error('概率数据少于两个');
}
if(argvs.length === 3){
  log('逗号分隔');
  arr = argvs[2].split(',');
}else{
  log('空格分隔');
  arr = argvs.filter((val,i)=>{
    return i>1?true:false
  });
}

log(arr);
